<?php  
class AppGlobal
{
	private static $_models = array();
	
	public static function loadModel($model, $module = 'default')
	{           
        $model = ucfirst($model);
        $index = $module . '_' . $model;         
        if ( ! isset(self::$_models[$index])) 
        {
            //Zend_Loader::loadClass($model, APPLICATION_PATH . '/modules/' . $module . '/models');
            include APPLICATION_PATH .DS. 'modules'.DS . $module .DS. 'models'.DS . $model . '.php';
            self::$_models[$index] = new $model();
        }
        return self::$_models[$index]; 
	}      
}  

